<script type="text/javascript">
    function getdate() {
        var date = new Date();
        var now = "";
        now = date.getFullYear() + "-";
        now = now + (date.getMonth() + 1) + "-";
        now = now + date.getDate() + " ";
        return now;
    }
    $(function () {
        var dayNamesMin = ['日', '一', '二', '三', '四', '五', '六'];
        var monthNamesShort = ['01月', '02月', '03月', '04月', '05月', '06月', '07月', '08月', '09月', '10月', '11月', '12月'];
        $('#dateFrom,#dateTo').datepicker({
            dayNamesMin:dayNamesMin,
            monthNamesShort:monthNamesShort,
            changeMonth:true,
            changeYear:true,
            dateFormat:'yy-mm-dd'
        });
        $('#dateFrom,#dateTo').val(getdate());
    })
</script>
<link href="/css/product/quality.css" rel="stylesheet" type="text/css"/>
<div class="search_div">
    <form id="sForm" name="sForm" method="post" action="/product/qc/export-data">
        <div>
            <label><{$lang.date}><{$lang.type}> :
                <select name="exportType">
                <{foreach key=key item=item from=$exportType}>
                    <option value="<{$key}>"><{$item}></option>
                <{/foreach}>
                </select>
            </label>&nbsp;&nbsp;&nbsp;
            <label>
                <{$lang.from}> :
                <input type="text" value="" onfocus="this.value=''" name="dateFrom" style="width:70px;" id="dateFrom" class="myInput"/>
            </label>&nbsp;
            <label>
                <{$lang.to}>:
                <input type="text" value="" onfocus="this.value=''" name="dateTo" style="width:70px;" id="dateTo" class="myInput"/>
            </label>&nbsp;
            <input class="button" type="submit" value="<{$lang.export}><{$lang.quanlity}><{$lang.report}>">
        </div>
    </form>
</div>
